package com.zs.games.utils;

import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;

import javax.servlet.http.HttpServletRequest;
/**
 * HTTP工具类
 */
public class HttpUtils {

	/**
	 * 获取HttpServletRequest对象
	 * @return
	 */

	public static HttpServletRequest getHttpServletRequest() {
		return ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
	}
	

	
}
